package com.seafwg.tx;

import com.seafwg.anno.service.AccountService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author seafwg
 * @Date 2022/3/13 1:25 上午
 * @Version 1.0
 * @description xxx
 */

public class TxTestAnno {
    @Test
    public void test1() {
        ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext-anno.xml");
        AccountService accountService = app.getBean(AccountService.class);
        accountService.transfer("tom","lucy",500);
    }
}
